<?php
require_once 'kw_base.php';
require_once KW_SYSTEM.'core.php';
$qs = $_SERVER['QUERY_STRING'];
require KW_DATA.'pages/index/publish.php';
if($qs != ''){
    $key = substr($qs, 0, -1);
    $kw_post_id = $key;
    $kw_post = $kw_pages[$key];
/*
    if(isset($kw_categories['$key'])){
        
    } else */

    if(isset($kw_pages[$key])){
        $kw_data = unserialize(file_get_contents(KW_DATA.'pages/data/'.$key.'.dat'));
        
        require KW_USERS.'theme/v/index.php';
    } else {
       require KW_USERS.'theme/v/default.php';
       exit();
    }
} else{
    require KW_USERS.'theme/v/default.php';
    exit();
}
?>